package com.totoro.service;

import com.totoro.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author TOTORO
 * @date 2021/5/18 16:08
 * 分类接口，提供所有查询分类方法
 */
public interface CategoryService {
    List<Category> findOneLevel();

    List<Category> findTwoLevel(String like);

    List<Category> findThreeLevel(String like);

    List<Category> findFourOrFiveLevel(String like);

    Map<Integer, Category> findKeywordData(String like);

    String byIdFindCategoryName(int id);

    List<Category> underNameCheck(String name);

    boolean findIsBy(int cid);

    List<Category> findIsHaveSpuAttr(int cid);

    Category byIdFindCategory(int id);

    Integer updateBuyCounyByCid(int cid);

    List<Category> findCategoryByCategoryIds(Integer[] categoryIds);

    List<Category> findAllTwoCategory();
}
